﻿Imports BusinessRule.DTO

Public Interface uLMSEntrustIBusiness
    ''' <summary>
    ''' 添加委托计量信息
    ''' </summary>
    ''' <param name="dto"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function AddEntrustMeteringInfo(ByVal dto As EntrustMeteringDTO) As Boolean

    ''' <summary>
    ''' 获取委托计量最大值得单号
    ''' </summary>
    ''' <param name="EntrustName_"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetMaxEntrustName(ByVal EntrustName_ As String) As DataTable

    ''' <summary>
    ''' 获取需要检测或者修改的委托计量信息
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetEntrustMeteringInfo(ByVal para As Dictionary(Of String, String)) As uMESProcessResult

    ''' <summary>
    ''' 添加委托计量详细信息
    ''' </summary>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function AddAddEntrustMeteringDetailInfo(ByVal dto As EntrustMeteringDTO) As Boolean

    ''' <summary>
    ''' 根据委托计量ID获取委托计量详细信息
    ''' </summary>
    ''' <param name="EntrustMeasurementID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetEntrustMeteringDetailInfo(ByVal EntrustMeasurementID As String) As DataTable

    ''' <summary>
    ''' 添加委托计量附件
    ''' </summary>
    ''' <param name="model"></param>
    ''' <param name="result"></param>
    ''' <param name="message"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function AddDelegateAttachment(ByVal model As bjDelegateCheckDTO, ByRef result As Boolean, ByRef message As String) As Boolean

    ''' <summary>
    ''' 添加委托计量详细信息
    ''' </summary>
    ''' <param name="dto"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateEntrustMeteringDetailInfo(ByVal dto As EntrustMeteringDTO) As Boolean

    ''' <summary>
    ''' 更新委托计量检测信息
    ''' </summary>
    ''' <param name="dto"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateEntrustMeteringInfo(ByVal dto As EntrustMeteringDTO) As Boolean

    ''' <summary>
    ''' 删除委托计量信息
    ''' </summary>
    ''' <param name="EntrustMeasurementID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function DelEntrustMeteringAllInfo(ByVal EntrustMeasurementID As String) As Boolean

    ''' <summary>
    ''' 更改委托计量信息
    ''' </summary>
    ''' <param name="dto"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateOldEntrustMeteringInfo(ByVal dto As EntrustMeteringDTO) As Boolean

    ''' <summary>
    ''' 删除委托计量详细信息
    ''' </summary>
    ''' <param name="EntrustMeasurementID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function DelDelEntrustMeteringDetailInfo(ByVal EntrustMeasurementID As String) As Boolean

    ''' <summary>
    ''' 获取批次当前序工序已经委托的数量
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetEntrustMeteringedQty(ByVal para As Dictionary(Of String, String)) As DataTable

    ''' <summary>
    ''' 确认检测
    ''' </summary>
    ''' <param name="EntrustMeasurementID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateIsCheckDetection(ByVal EntrustMeasurementID As String) As Boolean
End Interface
